package com.ewzj.bigdata.mvp.contract

import com.ewzj.bigdata.app.extensions.json2Body
import com.ewzj.bigdata.mvp.model.reqbean.*
import com.ewzj.bigdata.mvp.model.rspbean.*
import com.ewzj.bigdata.mvp.ui.adapter.CityAdapter
import com.ewzj.bigdata.mvp.ui.adapter.HomePageAdapter
import com.ewzj.bigdata.mvp.ui.adapter.HotcityAdapter
import com.ewzj.bigdata.mvp.ui.adapter.HourseTypeAdapter
import com.jess.arms.mvp.IModel
import com.jess.arms.mvp.IView
import io.reactivex.Observable

/**
 * author:zhangjing
 * 作用:
 * return:
 */
interface NewsWebActivityContract {
    interface View : IView{
        fun showComment()
        fun hideComment()
        fun resetHint(hint:String)
        fun resetTitle(title:String)
        fun isColoected(iscoloected:Int)
        fun reloadurl(infobean: InfoBean)
    }

    interface Model: IModel {
         fun doPraise(reqPraise: ReqPraise): Observable<BaseData<String>>
        fun read(gourl:String):Observable<BaseData<Any>>
        fun docomment(reqcomentbean: Reqcomentbean):Observable<BaseData<CommentBean>>
        fun doCollect(reqNormalCollect: ReqNormalCollect):Observable<BaseData<Any>>
    }
}